package com.frank.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.frank.subject.infra.basic.entity.SubjectCategory;

import java.util.List;

/**
 * 题目分类(SubjectCategory)表服务接口
 *
 * @author makejava
 * @since 2024-01-23 17:04:30
 */
public interface SubjectCategoryService extends IService<SubjectCategory> {

    /**
     * 根据条件查询
     * @param subjectCategory category
     * @return category list
     */
    List<SubjectCategory> queryCategoryByPrimary(SubjectCategory subjectCategory);

    /**
     * query category count
     * @param categoryId category id
     * @return count
     */
    Integer querySubjectCount(Long categoryId);

}
